
 
 F u n c t i o n :   h a s A t t r i b u t e ( d o m E l e m e n t O r C S S S e l e c t o r ,   s t r i n g A t t r i b u t e N a m e ) 
 
 
 
 S h o r t h a n d :   h a s A t t r ( d o m E l e m e n t O r C S S S e l e c t o r ,   s t r i n g A t t r i b u t e N a m e ) 
 
 
 
 D e s c r i p t i o n :   R e t u r n s   t r u e   i f   t h e   s p e c i f i e d   a t t r i b u t e   i s   a l r e a d y   s e t   o n   t h e   r e f e r e n c e d   e l e m e n t . 
 
 
 
 R e t u r n s :   B o o l e a n :   t r u e   i f   a t t r i b u t e   i s   s e t ,   f a l s e   o t h e r w i s e . 
 
 
 
 E x a m p l e : 
 
 
 
 v a r   i s S e t   =   $ A . h a s A t t r i b u t e ( d o m E l e m e n t ,   " a r i a - l a b e l " ) ; 
 
 
 
 / /   O r 
 
 
 
 v a r   i s S e t   =   $ A . h a s A t t r i b u t e ( " # t a r g e t E l e m e n t I d " ,   " a r i a - l a b e l " ) ; 
 
 